﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewContributionRates.aspx.cs" EnableEventValidation="false"
    Inherits="RCREEE.Web.Country_Details" Culture="auto" meta:resourcekey="PageResource1"
    UICulture="auto" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="CheckEntityLabel" runat="server" Font-Bold="True" ForeColor="#CC0000"
        Style="z-index: 1; left: 423px; top: 57px; width: 318px;
        text-align: center;" Visible="False" meta:resourcekey="CheckEntityLabelResource1"></asp:Label>
    <br />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
       <ProgressTemplate>
            <div class="progressBackgroundFilter">
            </div>
            <div class="processMessage">
                Loading...<br />
                <br />
                <img alt="Loading..." src="Images/Loading.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
      <asp:GridView ID="CountryDetailsView" runat="server" AutoGenerateColumns="False"
        CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None"
        Style="text-align: center" meta:resourcekey="CountryDetailsViewResource1" 
                  Width="100%">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="CountryName" HeaderText="Name" 
                meta:resourcekey="BoundFieldResource1" >
            <ItemStyle Width="40%" />
            </asp:BoundField>
            <asp:BoundField DataField="Field" HeaderText="Field" 
                meta:resourcekey="BoundFieldResource2" >
            <ItemStyle Width="20%" />
            </asp:BoundField>
            <asp:BoundField DataField="Comment" HeaderText="Comment" 
                meta:resourcekey="BoundFieldResource3" >
            <ItemStyle Width="40%" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#0268b0" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#CCCCCC" ForeColor="#990000" HorizontalAlign="Center" />
        <RowStyle BackColor="#EAEAEA" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#CCCCCC" Font-Bold="True" ForeColor="#990000" />
    </asp:GridView>
 
     <asp:LinkButton ID="EditButton" runat="server" onclick="EditButton_Click">Edit</asp:LinkButton>
    
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:Label ID="Label5" runat="server" height="24px" Text="Country" 
                width="139px"></asp:Label>
         <asp:DropDownList ID="DDCountry" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DDCountry_SelectedIndexChanged" 
                DataSourceID="ObjectDataSource1" DataTextField="Name" DataValueField="ID">
            </asp:DropDownList>
        
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                <ContentTemplate>
                     <br />
            <br />
              <asp:Label ID="Lbpermission" runat="server" Font-Bold="True" 
                ForeColor="#CC0000" Text="You haven't Permission to Edit " Visible="False"></asp:Label>
               
            <br />
            <br />
                    <asp:Panel ID="Panel1" runat="server" GroupingText="Rate">
                        <table class="style1">
                            <tr>
                                <td class="style2">
                                     <asp:Label ID="Label1" runat="server" Text="Rate"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Rate" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                        <asp:Panel ID="Panel2" runat="server" GroupingText="Comments" Width="400px">
                            <table class="style1">
                                <tr>
                                    <td class="style3">
                                        <asp:Label ID="Label2" runat="server" Text="English"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Comment0" runat="server" TextMode="MultiLine" Width="272px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        <asp:Label ID="Label3" runat="server" Text="Arabic"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Comment1" runat="server" TextMode="MultiLine" Width="272px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style3">
                                        <asp:Label ID="Label4" runat="server" Text="French"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Comment2" runat="server" TextMode="MultiLine" width="272px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </asp:Panel>
                   
                </ContentTemplate>
                <Triggers>
                <asp:AsyncPostBackTrigger ControlID="DDCountry" EventName="SelectedIndexChanged" />
               
                </Triggers>
            </asp:UpdatePanel>
        
               <asp:LinkButton ID="Save" runat="server" onclick="Save_Click">Save</asp:LinkButton>
            <asp:LinkButton ID="Cancel" runat="server" onclick="Cancel_Click">Cancel</asp:LinkButton>
             
            <br />
            <br />
            <br />
        </asp:View>
        <asp:View ID="View2" runat="server">
       
            </asp:View>
    </asp:MultiView>
   
    <br />
    <br />
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="RCREEE.Library.Entities.Project" 
        DeleteMethod="Deleteproject" InsertMethod="InsertProject" 
        SelectMethod="GetCountries" TypeName="RCREEE.Library.Entities.Project" 
        UpdateMethod="UpdateProject">
        <SelectParameters>
            <asp:SessionParameter Name="LanguageCode" SessionField="LanguageCode" 
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </ContentTemplate>
              </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style1
        {
            width: 95%;
        }
        .style2
        {
            width: 119px;
            text-align: center;
        }
        .style3
        {
            width: 84px;
        }
    </style>
</asp:Content>

